<!DOCTYPE html>
<html>
<head>
    <title>代码生成器</title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/font-awesome.min.css">
    <link rel="stylesheet" href="plugins/jqgrid/ui.jqgrid-bootstrap.css">
    <link rel="stylesheet" href="css/main.css">
    <script src="libs/jquery.min.js"></script>
    <script src="plugins/layer/layer.js"></script>
    <script src="libs/bootstrap.min.js"></script>
    <script src="libs/vue.min.js"></script>
    <script src="plugins/jqgrid/grid.locale-cn.js"></script>
    <script src="plugins/jqgrid/jquery.jqGrid.min.js"></script>
    <script src="js/common.js"></script>
</head>
<body>
<div id="rrapp">

    <div class="grid-btn">
        <div class="panel panel-info">
            <div class="panel-heading">
                <h3 class="panel-title">请输入代码生成的配置息信息 <b id="tantion_warning">(注*表名结构为【前缀_模块名_表名】)</b> </h3>
            </div>
            <form id="codeGenerate" action="sys/generator/code" method="post">
                <div class="panel-body">
                    <ul class="form_attr_ul">
                        <li class="row">
                                <div class="col-sm-2">
                                    projectBasePath（项目基础的路径，配置在column.properties中，用在生成的模板中导入一些项目的公共类的路径填充，可不填）：
                                </div>
                                <div class="col-sm-3">
                                    <div class="input-group">
                                        <input type="text" class="form-control" name="projectBasePath"
                                               id="projectBasePath" value="projectBasePath"/>
                                        <div class="input-group-addon"></div>
                                    </div>
                                </div>
                        </li>
                        <li class="row">
                            <div class="col-sm-2">
                                packagename包名（java类的路径=包名+模块名）：
                            </div>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="packagename"
                                           id="packagename" value="com.dx.modules"/>
                                    <div class="input-group-addon">*</div>
                                </div>
                            </div>
                        </li>
                        <li class="row">
                            <div class="col-sm-2">
                                moduleName项目模块名（java类的路径=包名+模块名）：
                            </div>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="moduleName"
                                       id="moduleName" value=""/>
                                    <div class="input-group-addon">*</div>
                                </div>
                            </div>
                        </li>
                        <li class="row">
                            <div class="col-sm-2">
                                tablePrefix表名前缀（生成bean对象会去掉这个表前缀）：
                            </div>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="tablePrefix"
                                           id="tablePrefix" value=""/>
                                    <div class="input-group-addon">*</div>
                                </div>
                            </div>
                        </li>
                        <li class="row">
                            <div class="col-sm-2">
                                author作者：
                            </div>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="author"
                                           id="author" value="rockstarsteve"/>
                                    <div class="input-group-addon">*</div>
                                </div>
                            </div>
                        </li>
                        <li class="row">
                            <div class="col-sm-2">
                                email邮件：
                            </div>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="email"
                                           id="email" value="670139644@qq.com"/>
                                    <div class="input-group-addon">*</div>
                                </div>
                            </div>
                        </li>
                        <li class="row">
                            <div class="col-sm-2">
                                <a class="btn btn-primary" @click="generator">
                                    <i class="fa fa-file-code-o"></i>&nbsp;生成代码
                                </a>
                                <a class="btn btn-primary" @click="reset">
                                    <i class="fa fa-file-code-o"></i>&nbsp;重置
                                </a>
                            </div>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" v-model="q.tableName"
                                       @keyup.enter="query" placeholder="需要查询的表名">
                            </div>
                            <div class="col-sm-3">
                                <a class="btn btn-default" @click="query">查询</a>
                            </div>
                        </li>
                    </ul>
                </div>
            </form>
        </div>
    </div>

    <table id="jqGrid"></table>
    <div id="jqGridPager"></div>

</div>

<script src="js/generator.js"></script>
</body>
</html>
